package cn.singleton;

/**
 * @auth wzy
 * @date 2023/11/4 9:30
 */
public class TaoFactoryTest {

    public static void main(String[] args) {
//        TaoFactory factory1 = TaoFactory.getInstance();
//        TaoFactory factory2 = TaoFactory.getInstance();
//        TaoFactory factory3 = TaoFactory.getInstance();


        TaoRunnable runnable = new TaoRunnable();

        for (int i = 0; i <10;i++) {
            new Thread(runnable).start();
        }

    }
}
